/**
  @(#)$Id: AL_AutoSync.cpp 69 2013-10-08 03:03:33Z xiaoting $
  @brief    	Multi-threaded programming critical section (lock)

  @author		$Author: xiaoting $
  @date			$Date: 2013-10-08 11:03:33 +0800 (周二, 08 十月 2013) $
  @version		$Revision: 69 $
  @url			$URL: https://svn.code.sf.net/p/xiaoting/game/trunk/MyProject/AL_StandardLib/AL_AutoSync.cpp $
  @header		$Header: https://svn.code.sf.net/p/xiaoting/game/trunk/MyProject/AL_StandardLib/AL_AutoSync.cpp 69 2013-10-08 03:03:33Z xiaoting $
 */
#include "stdafx.h"

#ifndef CXX_AL_AUTOSYNC_H
#include "AL_AutoSync.h"
#endif

#ifndef CXX_AL_SYNCOBJ_H
#include "AL_SyncObj.h"
#endif

// AL_ErrorLog Recording
static const NCHAR g_szErrorFileInfo[] = NTEXT("$Id: AL_AutoSync.cpp 69 2013-10-08 03:03:33Z xiaoting $");
///////////////////////////////////////////////////////////////////////////
//			AL_AutoSync
///////////////////////////////////////////////////////////////////////////
/**
* Construction
*
* @param AL_SyncObj& cAL_SyncObj
* @return
*/
AL_AutoSync::AL_AutoSync(AL_SyncObj& cAL_SyncObj):
m_cAL_SyncObj(cAL_SyncObj)
{
	m_cAL_SyncObj.SynchronizeStart();
}

/**
* Destruction
*
* @param
* @return
*/
AL_AutoSync::~AL_AutoSync()
{	
	m_cAL_SyncObj.SynchronizeEnd();
}

/* EOF */
